ngl: Make the coloring shader more versatile
authorMatthias Clasen <mclasen@redhat.com>
Fri, 12 Mar 2021 06:27:19 +0000 (01:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 12 Mar 2021 18:19:37 +0000 (13:19 -0500)
commit6a30c6b01c82edfbfd812bacd33a6ace8d363f75
tree23166913cdd55df17c94c0d3fe4038beec51bfc3
parent06d5c8e72dee3d63391fc05ebf081c6f63ed3ce6
ngl: Make the coloring shader more versatile

When the color passed is transparent black, use
the color from the texture as source, instead of
as mask. This lets use use the coloring program
both for regular and color glyphs, avoiding
program changes in text with Emoji.
gsk/ngl/gsknglrenderjob.c
gsk/ngl/resources/coloring.glsl